package com.cdhk.constant;

/**
 * Description 自定义错误枚举类
 * @auther: xxx
 * @date: xxx
 */

public enum ErrorCodeEnum implements com.ty.basic.exception.message.ErrorCodeEnum {

    TEST_ERROR_CODE_ENUM("typlm_test_error_00001", "typlm.test.error.code.msg"),
    NOT_FOUND_FILE_TEMPLATE("typlm_not_found_file_template_00001", "typlm.not.found.file.template.code.msg"),
    ;

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误提示
     */
    private String msg;

    ErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

}